package ro.prjmanager.model;

import javax.persistence.*;

/**
 * Created by IntelliJ IDEA.
 * User: vio
 * Date: 26.02.2010
 * Time: 12:24:20
 * To change this template use File | Settings | File Templates.
 */
@Table(name="fixed_components")
@Entity
public class FixedComponents {
     //define attributes that maps all columns of the coresponding table
    //this attribute maps the primary key column ID
    private java.lang.Integer id;
     //this attribute maps the column NAME
    private  java.lang.String  name;

     /**
     * Mapping the primary key
     * @return - java.lang.Integer the primary key for this entity
     **/
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "ID")
    public  java.lang.Integer  getId(){
        return this.id;
    }

    /**
     * The setter for ID column
     * @param id -  an java.lang.Integer object
     **/
    public void setId( java.lang.Integer  id){
        this.id=id;
    }

    /**
     * This method gets the name attribute
     * @return - an  java.lang.String  object
     **/
    @Column(name = "NAME")
    public  java.lang.String  getName(){
        return this.name;
    }

    /**
     * The setter for NAME column
     * @param name -  an  java.lang.String  object
     **/
    public void setName( java.lang.String  name){
        this.name=name;
    }
}
